<template>
  <div>
    <!-- 整个页面的外层容器 -->
    <el-container>
      <!-- 顶栏 -->
      <el-header class="layout-header">
        <h1>运营管理平台</h1>
      </el-header>
      <!-- 下半部分区域 -->
      <el-container class="layout-body">
        <!-- 左侧边栏 -->
        <el-aside class="layout-aside">
          <el-menu
              router
              :default-active="$router.currentRoute.path"
              class="el-menu-vertical-demo"
              background-color="#222c32"
              text-color="#fff"
              active-text-color="#fff">



            <!-- 首页 -->
            <el-menu-item index='/homeview'>
              <i class="el-icon-location"></i>
              <span>首页</span>
            </el-menu-item>
            <!-- 临时页面 -->

            <el-submenu index="1">
              <template slot="title">
                <i class="el-icon-location"></i>
                <span>员工管理</span>
              </template>
              <el-menu-item index="/sys-admin/temp/admin/list">
                <i class="el-icon-location"></i>
                <span>员工列表</span>
              </el-menu-item>
            </el-submenu>

            <el-submenu index="2">
              <template slot="title">
                <i class="el-icon-location"></i>
                <span>客户管理</span>
              </template>
              <el-menu-item index="/sys-user/temp/user/list">
                <i class="el-icon-location"></i>
                <span>客户列表</span>
              </el-menu-item>
            </el-submenu>

            <el-submenu index="3">
              <template slot="title">
                <i class="el-icon-location"></i>
                <span>服务管理</span>
              </template>
              <el-menu-item index="/sys-serve/temp/serve/list">
                <i class="el-icon-location"></i>
                <span>服务类别列表</span>
              </el-menu-item>
              <el-menu-item index="/sys-serve/temp/service/list">
                <i class="el-icon-location"></i>
                <span>服务项目列表</span>
              </el-menu-item>
            </el-submenu>


            <el-submenu index="4">
              <template slot="title">
                <i class="el-icon-location"></i>
                <span>商品管理</span>
              </template>
              <el-menu-item index="/sys-product/temp/products/ProductShow">
                <i class="el-icon-s-operation"></i>
                <span>商品展示</span>
              </el-menu-item>
              <el-menu-item index="/sys-product/temp/products/ProductAddNew">
                <i class="el-icon-s-operation"></i>
                <span>添加商品</span>
              </el-menu-item>
              <el-menu-item index="/sys-product/temp/products/ProductList">
                <i class="el-icon-s-operation"></i>
                <span>商品列表</span>
              </el-menu-item>
            </el-submenu>




          </el-menu>
        </el-aside>
        <!-- 主体 -->
        <el-main class="layout-main">
          <router-view/>

        </el-main>
      </el-container>
    </el-container>
  </div>
</template>

<style>
.layout-header {
  background: #1684b0;
  color: #fff;
}

.layout-header h1 {
  line-height: 60px;
}

.layout-body {
  position: absolute;
  top: 60px;
  bottom: 0;
  left: 0;
  right: 0;
}

.layout-aside {
  background: #222c32;
}

.layout-aside i {
  color: #fff !important;
}

.layout-main {
}

.el-menu-item.is-active {
  background: #2d3c4d !important;
}

 body{
   font-size: 14px;
   line-height: 1.42857143;
   background-color: #fff;
 }

</style>

